#!/bin/bash

set -e

if [ "a$GUID" != "a" ]; then
    touch /access.log
    chown $GUID /access.log
    exec gosu $GUID /erasure-service $ARGS "$@"
fi

exec "$@"
